Fix 'make clean' when ioemu configuration failed.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 25 Jul 2006 10:19:48 +0000 (11:19 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 25 Jul 2006 10:19:48 +0000 (11:19 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/Makefile

index 41951d3fca44e936578b56852ee322b86324b514..2a66e89c27b6350977ba58eb15be579e06a1408d 100644 (file)
@@ -61,10 +61,12 @@ check_clean:
 .PHONY: ioemu ioemuinstall ioemuclean
 ifdef CONFIG_IOEMU
 export IOEMU_DIR ?= ioemu
-ioemu ioemuinstall ioemuclean:
+ioemu ioemuinstall:
        [ -f $(IOEMU_DIR)/config-host.h ] || \
        (cd $(IOEMU_DIR) && sh configure --prefix=/usr)
        $(MAKE) -C $(IOEMU_DIR) $(patsubst ioemu%,%,$@)
+ioemuclean:
+       [ ! -f $(IOEMU_DIR)/config-host.h ] || $(MAKE) -C $(IOEMU_DIR) clean
 else
 ioemu ioemuinstall ioemuclean:
 endif